#include "state_machine.hpp"

namespace fsm
{
	namespace sc = boost::statechart;

	sc::result StMove::react(const EvTick&)
	{
		printf("move over! post EvMoveEnd event\n");

		post_event(EvMoveEnd());

		return discard_event();
	}

	sc::result StMove::react(const EvMoveTo& ev_moveto)
	{
		x_ = ev_moveto.x_;
		y_ = ev_moveto.y_;
		printf("start move! dst post[%d, %d]\n", x_, y_);
		return discard_event();
	}

}//names